package com.training.java.module2;


public class TestEvaluation {

    private int  numberOfCorrectAnswers = 0;

    public void addPointForCorrectAnswer(boolean isAnswerCorrect){
        if(isAnswerCorrect){
            numberOfCorrectAnswers++;
        }
    }
    public void printNumberOfCorrectAnswers(){
        System.out.printf("%nВы набрали %d баллов%n", numberOfCorrectAnswers);
    }
}
